package frontend.components.other;

import backend.model.base.DBModel;
import org.apache.wicket.ajax.AjaxRequestTarget;

import java.io.Serializable;
import java.util.List;

public interface EntityListAndSearchCallback<DBM extends DBModel> extends Serializable {

    public void onEntitySelected(AjaxRequestTarget target, DBM entity);

    public List<DBM> getAvailableEntities();

    public List<DBM> getFilteredEntities(String value, boolean showOnlyActive, List<DBM> availableEntities);

}
